﻿using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
using YourStore.Models;

namespace YourStore.Controllers
{
    public class HomeController : Controller
    {
        //
        // GET: /Home/

        YourStoreEntities storeDB = new YourStoreEntities();

        public ActionResult Index()
        {
            topProduct tp = new topProduct();
            // Get most popular Products
            var product = tp.GetTopSellingProduct(3);

            return View(product);
        }
        public ActionResult AboutUs()
        {
            return View();
        }
        public ActionResult ContactUs()
        {
            return View();
        }

       
    }
}
